/* eslint-disable prettier/prettier */
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { CommitsService } from './commits.service';
// import { CreateCommitDto } from './dto/create-commit.dto';
// import { UpdateCommitDto } from './dto/update-commit.dto';

@Controller('commits')
export class CommitsController {
  constructor(private readonly commitsService: CommitsService) { }

  // @Post()
  // create(@Body() createCommitDto: CreateCommitDto) {
  //   return this.commitsService.create(createCommitDto);
  // }

  // @Get()
  // findAll() {
  //   return this.commitsService.findAll();
  // }

  // 查找医生对应的评论列表
  @Get(':id')
  async findOne(@Param('id') id: string) {
    return await this.commitsService.findCommits(id);
  }

  // @Patch(':id')
  // update(@Param('id') id: string, @Body() updateCommitDto: UpdateCommitDto) {
  //   return this.commitsService.update(+id, updateCommitDto);
  // }

  // @Delete(':id')
  // remove(@Param('id') id: string) {
  //   return this.commitsService.remove(+id);
  // }
}
